package com.lpf.json.fastjson.filter.globalFilter;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SimplePropertyPreFilter;

public class TestGlobalFilter {

	public static void main(String[] args) {
		VO vo = new VO();
		vo.setId(123);
		vo.setName("flym");

		SimplePropertyPreFilter filter = new SimplePropertyPreFilter(VO.class, "name");
		
		System.out.println(filter.getExcludes());
		System.out.println(filter.getIncludes());
		
		System.out.println(JSON.toJSONString(vo, filter));
	}
}
